/*
  ejs是需要安装的 npm i ejs
*/

module.exports = `
<!DOCTYPE html>
<html>
  <head>
    <meta charset = "utf-8">
    <meta name = "keywords" content = "关键词">
    <meta name = "description" content = "网页内容">
    <meta name = "viewport" content = "width = device-width, initial-scale = 1">
    <title>Koa Server HTML</title>
    <link rel = "stylesheet" href = "https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css">
    <script src = "https://cdn.bootcss.com/jquery/3.2.0/jquery.min.js"></script>
    <script src = "https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js"></script>
    <style type = "text/css" ></style>
  </head>
  <body>
    <div class="container">
      <div class="row">
        <div class="col-md-8">
          <h1>欢迎回来 你是我的英雄  Hi <%= me %></h1>
          <p>This is <%= you %></p>
        </div>
        <div class="col-md-4">
          <p>测试动态 ejs模板引擎</p>
        </div>
      </div>
    </div>
  </body>
</html>
`
/*
  ejs示例代码
<% if (names.length) { %>
  <ul>
    <% names.forEach(function(name){ %>
      <li foo='<%= name + "'" %>'><%= name %></li>
    <% }) %>
  </ul>
<% } %>
<html>
  <head>
    <script src="../ejs.js"></script>
    <script id="users" type="text/template">
      <% if (names.length) { %>
        <ul>
          <% names.forEach(function(name){ %>
            <li><%= name %></li>
          <% }) %>
        </ul>
      <% } %>
    </script>
    <script>
      onload = function(){
        var users = document.getElementById('users').innerHTML;
        var names = ['loki', 'tobi', 'jane'];
        var html = ejs.render(users, { names: names });
        document.body.innerHTML = html;
      }
    </script>
  </head>
  <body>
  </body>
</html>
*/
/*
  在git搜索ejs   https://github.com/tj/ejs
  通过<%=  %>进行变量传递
*/